* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /* 使用用户提供的背景图片 */
    background: url('./bg.webp') no-repeat;
    background-size: cover;
    /* 如果背景图加载失败，将使用渐变色作为备用背景 */
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    padding-top: 80px;
    /* 为顶部软件名称留出空间 */
}


/* 左侧登录区域 */

.login-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: absolute;
    z-index: 2;
    right: 200px;
    top: 50%;
    transform: translateY(-50%);
}

.login-form {
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 48px 40px;
    width: 100%;
    max-width: 400px;
}

.logo {
    margin-bottom: 32px;
}

.logo-text {
    color: #4A90E2;
    font-size: 16px;
    font-weight: 500;
}

.login-title {
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 16px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-group input::placeholder {
    color: #9ca3af;
}

.forgot-password {
    text-align: right;
    margin-bottom: 24px;
}

.forgot-password a {
    color: #4A90E2;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.sign-in-btn {
    width: 100%;
    background: #4A90E2;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-bottom: 24px;
}

.sign-in-btn:hover {
    background: #357abd;
}

.divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e1e5e9;
}

.divider span {
    background: rgba(255, 255, 255, 0.95);
    padding: 0 16px;
    color: #6b7280;
    font-size: 14px;
}

.social-login {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.social-btn:hover {
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.register-link {
    text-align: center;
    font-size: 14px;
    color: #333;
}

.register-link a {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
}

.register-link a:hover {
    text-decoration: underline;
}


/* 右侧图形区域 */

.graphics-section {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.graphics-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.data-visualization {
    position: relative;
    width: 600px;
    height: 500px;
    transform: perspective(1000px) rotateX(10deg) rotateY(-15deg);
}


/* 数据库堆栈 */

.database-stack {
    position: absolute;
}

.stack-1 {
    left: 50px;
    bottom: 80px;
    z-index: 1;
}

.stack-2 {
    right: 80px;
    bottom: 60px;
    z-index: 1;
}

.database-cylinder {
    width: 60px;
    height: 40px;
    background: linear-gradient(135deg, #4A90E2, #357abd);
    border-radius: 50%;
    margin-bottom: 8px;
    position: relative;
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.3);
}

.database-cylinder::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 16px;
    background: linear-gradient(135deg, #5ba0f2, #4A90E2);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(74, 144, 226, 0.2);
}

.database-cylinder::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #ff4757;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 71, 87, 0.6);
}


/* 主平台 */

.main-platform {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.platform-base {
    width: 280px;
    height: 200px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 20px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.chart-container {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 120px;
}

.chart-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e293b, #334155);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.chart-bars {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 60px;
    height: 60px;
    display: flex;
    align-items: end;
    gap: 8px;
}

.bar {
    flex: 1;
    background: linear-gradient(to top, #ff4757, #ff6b7a);
    border-radius: 2px 2px 0 0;
    animation: barGrow 2s ease-out infinite alternate;
}

.bar-1 {
    height: 30%;
    animation-delay: 0s;
}

.bar-2 {
    height: 60%;
    animation-delay: 0.2s;
}

.bar-3 {
    height: 45%;
    animation-delay: 0.4s;
}

.bar-4 {
    height: 80%;
    animation-delay: 0.6s;
}

.bar-5 {
    height: 35%;
    animation-delay: 0.8s;
}

@keyframes barGrow {
    0% {
        transform: scaleY(0.8);
    }
    100% {
        transform: scaleY(1.1);
    }
}

.percentage-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #64748b;
    font-size: 24px;
    font-weight: bold;
}

.control-panel {
    position: absolute;
    bottom: 15px;
    right: 20px;
    left: 20px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-buttons {
    display: flex;
    gap: 8px;
}

.control-btn {
    width: 12px;
    height: 12px;
    background: #4A90E2;
    border-radius: 2px;
    animation: pulse 2s ease-in-out infinite;
}

.control-btn:nth-child(2) {
    animation-delay: 0.3s;
}

.control-btn:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}


/* 浮动三角形 */

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-triangle {
    position: absolute;
    width: 0;
    height: 0;
    animation: float 6s ease-in-out infinite;
}

.triangle-1 {
    top: 10%;
    left: 15%;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 35px solid rgba(74, 144, 226, 0.6);
    animation-delay: 0s;
}

.triangle-2 {
    top: 20%;
    right: 10%;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 25px solid rgba(74, 144, 226, 0.4);
    animation-delay: 2s;
}

.triangle-3 {
    bottom: 15%;
    left: 20%;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 20px solid rgba(74, 144, 226, 0.5);
    animation-delay: 4s;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.6;
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
        opacity: 0.8;
    }
    66% {
        transform: translateY(-10px) rotate(240deg);
        opacity: 0.4;
    }
}


/* 背景装饰元素 */

.graphics-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 30%, rgba(74, 144, 226, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(74, 144, 226, 0.08) 0%, transparent 50%), radial-gradient(circle at 60% 20%, rgba(74, 144, 226, 0.06) 0%, transparent 50%);
    animation: backgroundMove 20s ease-in-out infinite;
}

@keyframes backgroundMove {
    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
}


/* 响应式设计 */

@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }
    .graphics-section {
        height: 300px;
    }
    .data-visualization {
        transform: perspective(800px) rotateX(5deg) rotateY(-10deg) scale(0.7);
    }
}